Component({
  options: {
    addGlobalClass: true,
  },
  properties: {
    goodsTitle: {
      type: String,
      value: "取消预售条款取消预售条款",
    },
    goodsPresell: {
      type: Object,
      value: {}
    },
    selectSkuObj: {
      type: Object
    }
  },
  data: {
    contentHeight: 0,
    showDialog: false
  },
  methods: {
    open() {
      this.setData({ showDialog: true })
    },
    showPreSellFunc() {
      this.open()
    },
    onContentHeight(val) {
      this.setData({
        contentHeight: val.detail
      })
    },
    handleDialogShow() {
      this.setData({ dialogShow: true })
    },
    handleDialogHide() {
      this.setData({ dialogShow: false })
    }
  }
});
